#include <iostream>
#include "class.h"

using namespace std;

int main()


{
figura pfigura;
krug pkrug;
kvadrat pkvadrat;

    int a,b,c;
    cout << "Vvedite: \n 1.KRUG \n 2.KVADRAT \n";

    cin >> a;
    switch(a)
    {
     case 1:
        pfigura = pkrug;
        cout <<"Ty vybral KRUG" <<endl;
        cout <<"1.Moove or 2.Show? \n\n";
        cin >>b;
        switch(b)
        {
        case 1:pkrug.moove();
            break;
        case 2: pkrug.show();
            break;
        }
        break;
      case 2: pfigura = pkvadrat;
        cout <<"Ty vybral KVADRAT " <<endl;
        cout <<"1.Moove or 2.Show? \n\n";
        cin >>b;
        switch(b)
        {
        case 1:pkvadrat.moove();
            break;
        case 2: pkvadrat.show();
            break;
        }
        break;
    }


}

